package com.xiaoluo.lottery.entity;

import com.xiaoluo.lottery.request.CreateRoundRequest;
import org.springframework.core.convert.converter.Converter;

/**
 * Created by Caedmon on 2016/4/6.
 */
public class GameTypeConverter implements Converter<Integer,CreateRoundRequest.GameType>{
    @Override
    public CreateRoundRequest.GameType convert(Integer value) {
        return CreateRoundRequest.GameType.valueOf(value);
    }
}
